package com.etlmaster.executor.utils;

import com.etlmaster.executor.StepStack.MetaEntry;


/**
 * @author Wugf
 * @date 2016-11-10
 */
public class CallableResult {
	private int result;
	private String message;
	private MetaEntry entry;
	public CallableResult(int result, String message,MetaEntry entry) {
		this.result = result;
		this.message = message;
		this.setEntry(entry);
	}
	public int getResult() {
		return result;
	}
	public String getMessage() {
		return message;
	}
	public boolean isError(){
		return result == 1;
	}
	public MetaEntry getEntry() {
		return entry;
	}
	public void setEntry(MetaEntry entry) {
		this.entry = entry;
	}
}
